#ifndef _EXTI_KEY_H
#define _EXTI_KEY_H

#include "stm32f4xx_conf.h"
#include "stm32f4xx.h"

#define EXTI_KEY1_PIN             GPIO_Pin_0
#define EXTI_KEY1_PORT            GPIOA
#define EXTI_KEY1_CLOCK           RCC_AHB1Periph_GPIOA

#define EXTI_KEY2_PIN             GPIO_Pin_13
#define EXTI_KEY2_PORT            GPIOC
#define EXTI_KEY2_CLOCK           RCC_AHB1Periph_GPIOC

#define EXTI_KEY1_LINE            EXTI_Line0
#define EXTI_KEY2_LINE            EXTI_Line13

#define EXTI_KEY1_PORTSOURCE      EXTI_PortSourceGPIOA
#define EXTI_KEY2_PORTSOURCE      EXTI_PortSourceGPIOC

#define EXTI_KEY1_PINSOURCE       EXTI_PinSource0
#define EXTI_KEY2_PINSOURCE       EXTI_PinSource13

#define EXTI_CLOCK                 RCC_APB2Periph_SYSCFG

void exti_key1_init(void);
void exti_key2_init(void);

#endif //_EXTI_KEY_H